﻿using Google.Protobuf;

namespace Pisces
{
    /// <summary>
    /// 网络消息协议解析器
    /// </summary>
    public interface IProtocolParser
    {
        /// <summary>
        /// 解析方法
        /// </summary>
        /// <param name="packetID">消息id</param>
        /// <param name="bytes">消息体body</param>
        /// <returns> 解析完成的protobuf消息 </returns>
        public IMessage parseProtobufPacket(short packetID, byte[] bytes);
    }
}